package com.qf.vue1.mapper;

import com.qf.vue1.domain.Student;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface StudentMapper {

    List<Student> findAll();

    @Select("select * from stu where number=#{number}")
    Student findByNumber(String number);

    @Update("update stu set name=#{name},birthday=#{birthday},address=#{address} where number=#{number}")
    void update(Student stu);

}
